home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / TEX-UTIL / DATEX / !DaTeX / !Help next >
Text File  |  1994-10-12  |  19KB  |  692 lines

  1.                    Help file for DaTeX
  2.                    ===================
  3.  
  4.                       Version 3.11
  5.  
  6.                  © Vampire Products 1994
  7.                  
  8. This product is FreeWare. You are free to copy it
  9. providing all accompanying files are included and no
  10. charge, other than to cover costs, is made.
  11.  
  12. 0. Contents
  13. -----------
  14. 1 What is DaTeX?
  15. 2 Starting DaTeX
  16. 3 Using DaTeX
  17.    3.1 The Control Window
  18.       3.1.1 Editing a TeX document
  19.       3.1.2 Viewing a DVI file
  20.       3.1.3 Printing the DVI file
  21.       3.1.4 Viewing the last log
  22.       3.1.5 Opening the directory viewer
  23.       3.1.6 Tidying the directory
  24.       3.1.7 Processing the document
  25.    3.2. The Choices window
  26.       3.2.1 The Save icon
  27.       3.2.2 The Apply icon
  28.       3.2.3 The Multi-task option
  29.       3.2.4 The Virtual option
  30.       3.2.5 Memory allocation
  31.          3.2.5.1 The sliding bar
  32.          3.2.5.2 The < and > arrows
  33.          3.2.5.3 The writable icon
  34.       3.2.6 The Auto Run option
  35.       3.2.7 The Auto Edit option
  36.       3.2.8 The Print to file option
  37.       3.2.9 The Printer menu icon
  38.    3.3 The Create as Window
  39.       3.3.1 Creating LaTeX documents
  40.    3.4 The Task Output Window
  41.       3.4.1 Pausing the task
  42.       3.4.2 Resuming the task
  43.       3.4.3 Killing the task
  44. 4 Including files
  45. 5 Printers
  46. 6 The DaTeX$Options system variable
  47. 7 ArMaTuReS support
  48. 8 BibTeX support
  49. 9 Problems
  50.    9.1 !Virtual
  51.    9.2 Task input
  52.    9.3 Lack of memory
  53. 10 Acknowledgements
  54. 11 Disclaimer
  55. 12 Contacting me
  56.  
  57.  
  58. 1. What is DaTeX?
  59. -----------------
  60.  
  61.   DaTeX is a WIMP front-end to the ArmTeX suite of
  62. programs ported by Mark Sinke. It assumes that you
  63. already have ArmTeX installed and set up how you
  64. like it.
  65.  
  66. So why should you use DaTeX if TeX already exists?
  67. The answer to this is that it allows you to do
  68. things that running TeX from the command line does
  69. not letyou do easily.
  70.  
  71.   1 - View the DVI file automatically when finished
  72.       processing.
  73.  
  74.   2 - Multi-task whilst processing a document.
  75.  
  76.   3 - Process the DVI file and send it to the
  77.       printer
  78.  
  79.   4 - Easy creation of new TeX documents with a set
  80.       of customizable default files.
  81.  
  82.   5 - Automatic re-processing of LaTeX documents
  83.       with cross-references when necessary.
  84.  
  85.   6 - Support for Virtual (See problems below)
  86.  
  87.   7 - Support for ArMaTuReS
  88.  
  89. N.B. DaTeX is heavily biased towards using LaTeX
  90.      since that is the format I use most often.
  91.  
  92. 2. Starting DaTeX
  93. -----------------
  94.  
  95.   To start DaTeX double click on the !DaTeX icon in
  96. the directory viewer. The application will load and
  97. appear on the right side of the icon bar.
  98.  
  99. You can use some of the available options without
  100. having TeX "visible" to the system but it isn't all
  101. that useful. I suggest that you add the line
  102.   Filer_Run <your apps directory path>.!DaTeX
  103. to the TeXPaths file, inserting the appropriate
  104. path name to automatically load DaTeX when using
  105. TeX.
  106.  
  107.  
  108. 3. Using DaTeX
  109. --------------
  110.  
  111.   To inform DaTeX which file to process drag either
  112. the directory containing the TeX file, or the TeX
  113. file itself to the DaTeX icon on the icon bar.
  114. Double-clicking on TeX or LaTeX files will also
  115. achieve the same effect but only if DaTeX is running.
  116. What happens next depends on the options you have
  117. selected (see Choices window below).
  118.  
  119. One of four things will happen :-
  120.  
  121.   1 - The document will be processed
  122.   2 - The document will be loaded into an editor
  123.   3 - Both of the above
  124.   4 - The Control window will appear
  125.  
  126. The default is for the Control window to appear.
  127.  
  128.   To process the current document either use the
  129. Control window, or click the Left mouse button on
  130. the DaTeX icon.
  131.  
  132.   To view the DVI file either use the Control
  133. window or click the Right mouse button on the DaTeX
  134. icon.
  135. When using the DaTeX icon, if the TeX file has been
  136. updated it is automatically re-processed before
  137. viewing.
  138.  
  139.  
  140. 3.1 The Control Window
  141. ----------------------
  142.  
  143.   This is the main DaTeX control area. The current
  144. document is displayed in the box.
  145.  
  146. This window is opened when the Control menu option
  147. is selected or if no Auto options are set.
  148.  
  149. There are a number of available options :-
  150.  
  151.   1 - Edit the document
  152.   2 - View the document
  153.   3 - Print the document
  154.   4 - View the last log for the document
  155.   5 - Open a directory viewer containing the
  156.       document
  157.   6 - Remove all the non-essential files from the
  158.       document directory
  159.   7 - Process the document
  160.   
  161. 3.1.1 Editing a TeX document
  162. ----------------------------
  163.  
  164.   When the Edit Document icon is selected, or if
  165. the Auto Edit option is set, DaTeX will attempt to
  166. load the the TeX file into an editor. If an editor
  167. is already loaded it will pass it to that editor,
  168. if not the default editor is loaded and the TeX
  169. file is passed to that.
  170.  
  171.  
  172. 3.1.2 Viewing a DVI file
  173. ------------------------
  174.  
  175.   If a DVI viewer is already loaded, DaTeX will
  176. pass that the DVI file, otherwise the default
  177. viewer will be loaded and the file passed to it.
  178.  
  179. If the View Document icon was selected, the current
  180. DVI file will be viewed, however if the DaTeX icon
  181. was clicked with the Right mouse button a check
  182. will first be made to see if the TeX file has been
  183. altered since the DVI file was created. If it has
  184. been then the TeX file will be re-processed and the
  185. resulting DVI will be viewed.
  186.  
  187.  
  188. 3.1.3 Printing the DVI file
  189. ---------------------------
  190.  
  191.   If the Print Document icon is selected then the
  192. DVI file will be passed to the currently selected
  193. DVI converter (See Printers below). The resulting
  194. file will then be sent to the !Printers application,
  195. unless the Print to file option has been set (see
  196. Choices window below).
  197.  
  198. DaTeX does not check whether the correct printer
  199. type has been activated, it relies on the !Printers
  200. application to do any necessary checks.
  201.  
  202.  
  203. 3.1.4 Viewing the last log
  204. --------------------------
  205.  
  206.   Whenever TeX processed a document it stores a
  207. log of the files included and any errors that occur.
  208. Choosing the View Last Log icon will load this into
  209. a editor for perusal should you wish to refer to
  210. something, e.g. how you corrected an error.
  211.  
  212.  
  213. 3.1.5 Opening the directory viewer
  214. ----------------------------------
  215.  
  216.   Selecting the Open Directory icon will open the
  217. directory viewer which contains the current TeX
  218. document.
  219.  
  220.  
  221. 3.1.6 Tidying the directory
  222. ---------------------------
  223.  
  224.   Selecting the Tidy Directory icon will remove the
  225. TeX information files such as 'aux','log','toc',
  226. from the current TeX documents directory.
  227.  
  228.  
  229. 3.1.7 Processing the document
  230. -----------------------------
  231.  
  232.   The bottom line of icons determine how TeX should
  233. process the document. Choosing the LaTeX icon
  234. processes the file as a LaTeX document, choosing
  235. the SliTeX icon processes it as a SliTeX document,
  236. etc.
  237.  
  238. This determines how the document will be processed
  239. when clicking on the DaTeX icon.
  240.  
  241.  
  242. 3.2 The Choices window
  243. ----------------------
  244.  
  245.   This window allows you to configure how DaTeX
  246. works. It is opened by selecting the Choices menu
  247. option. If the window is closed without selecting
  248. the Save or Apply icons then any changes made are
  249. discarded.
  250.  
  251.  
  252. 3.2.1 The Save icon
  253. -------------------
  254.  
  255.   Selecting the Save icon will close the Choices
  256. window, save the current options as the default
  257. options on start up, and apply the changes for the
  258. rest of the session.
  259.  
  260.  
  261. 3.2.2 The Apply icon
  262. --------------------
  263.  
  264.   Selecting the Apply icon will close the Choices
  265. window and apply the changes made to the rest of
  266. the session.
  267.  
  268.  
  269. 3.2.3 The Multi-task option
  270. ---------------------------
  271.  
  272.   If the Multi-task option is set then when
  273. processing a TeX document it will be run in a 
  274. TaskWindow, allowing you to continue using the
  275. desktop while it is running. You do not have to
  276. have a TaskWindow providing editor loaded to use
  277. this facility.
  278.  
  279. If this option is not selected then when processing
  280. a TeX document it takes over control from the
  281. desktop and only returns it when the processing is
  282. complete.
  283. This is faster than running in a TaskWindow.
  284.  
  285.  
  286. 3.2.4 The Virtual option
  287. ------------------------
  288.  
  289.   If the Virtual option is set then DaTeX will
  290. attempt to use the !Virtual application to enable
  291. larger documents to be processed. When set the
  292. amount of memory allocated is in terms of Mb of
  293. disc swap space rather than Kb of RAM.
  294.  
  295. If this option is set then all processing will be
  296. multi-tasking since !Virtual only operates in the
  297. desktop.
  298.  
  299. N.B. At the time of release I have not been able to
  300.      run TeX under Virtual correctly. See the
  301.      problem section below for details.
  302.      
  303.      
  304. 3.2.5 Memory allocation
  305. -----------------------
  306.  
  307.   Memory is allocated in pages although the display
  308. is in Kilobytes. Therefore machines with less
  309. memory have a greater degree of control when
  310. selecting the required amount.
  311.   You cannot allocate more than the current amount
  312. of free memory, although if this later changes the
  313. amount allocated is not updated.
  314.  
  315.   There are three methods of altering the amount of
  316. memory assigned to TeX when processing.
  317.  
  318.  
  319. 3.2.5.1 The sliding bar
  320. -----------------------
  321.  
  322.   Dragging the red bar will alter the amount of
  323. memory to the percentage of the area covered, i.e.
  324. dragging it half way will allocated 50% of the
  325. total memory of the machine. You cannot drag the
  326. bar further than the amount of free memory available
  327.  
  328.  
  329. 3.2.5.2 The < and > arrows
  330. --------------------------
  331.  
  332.   Clicking on these icons will increase and
  333. decrease the amount of memory respectively.
  334. Clicking with the Left button in/decreases by one
  335. page, clicking with the Right button reverses the
  336. action. Holding the Shift key down while clicking
  337. will alter the value by 8 pages.
  338.  
  339.  
  340. 3.2.5.3 The writable icon
  341. -------------------------
  342.  
  343.   Entering a value in the writable icon and
  344. pressing Return will set the amount to the nearest
  345. lowest number of pages.
  346.  
  347.  
  348. 3.2.6 The Auto Run option
  349. -------------------------
  350.  
  351.   If the Auto Run option is set then when a new
  352. document is dragged to DaTeX it is automatically
  353. processed depending on its file type.
  354.   If the type of the file is unknown a message box
  355. will appear asking how to process the document.
  356. Selecting Cancel will abort the process, otherwise
  357. the document will be processed according to the
  358. icon selected.
  359.  
  360.  
  361. 3.2.7 The Auto Edit option
  362. --------------------------
  363.  
  364.   If the Auto Edit option is set then when a new
  365. document is dragged to DaTeX it is automatically
  366. loaded into an editor.
  367.  
  368.  
  369. 3.2.8 The Print to file option
  370. ------------------------------ 
  371.  
  372.   If the Print to file option is set then, when
  373. printing a DVI file, the converted DVI file is not
  374. sent to the !Printers application, it is retained
  375. in the document directory.
  376.  
  377.  
  378. 3.2.9 The Printer menu icon
  379. ---------------------------
  380.  
  381.   Clicking on this icon produces a menu containing
  382. the available printer types. Selecting one of these
  383. sets the type of file created when the Print
  384. Document icon of the Control menu is selected.
  385. See the Printers options below for details on
  386. creating new printer types.
  387.  
  388.  
  389. 3.3 The Create as Window
  390. ------------------------
  391.  
  392.   This window appears when following the Create
  393. menu options. It is a standard RISC OS Save As
  394. window.
  395.  
  396.   When creating a new document a default file is
  397. copied as the TeX file based on the type of
  398. document being created. These files reside in the
  399. Defaults directory of the !DaTeX application and
  400. can be altered to suit your needs.
  401.  
  402.  
  403. 3.3.1 Creating LaTeX documents
  404. ------------------------------
  405.  
  406.   The Create->LaTeX option is different to the
  407. other options in that it must be selected to show
  408. the window.
  409.   This is because this window has a separate menu
  410. attached to it. This menu allows the type of LaTeX
  411. document style to be created to be chosen.
  412. The four default styles, Article,Report,Book and
  413. Letter, are available together with a writable
  414. user style.
  415.  
  416.   The only way to remove this window is to select
  417. either the Save or Cancel icon.
  418.  
  419.  
  420. 3.4 The Task Output Window
  421. --------------------------
  422.  
  423.   If the Multi-task option is set then all output
  424. from a DaTeX job will be sent to this window. The
  425. window retains all the output by automatically
  426. adjusting the size of its work area.
  427.  
  428. When any new output is sent to the window it
  429. automatically scrolls to the bottom of the work
  430. area.
  431.  
  432.   When a job is running, the DaTeX iconbar icon
  433. will change to show the word 'Running' under the
  434. icon.
  435.  
  436.   The function of the DaTeX icon changes when a job
  437. is running. When clicked, if the Output window is
  438. closed it will open it, otherwise it ignores the
  439. Left and Right mouse buttons.
  440.  
  441.   When the job is complete, the DaTeX icon will
  442. return to showing the word 'DaTeX'. The window
  443. title will also change by having ' - Completed'
  444. appended to it.
  445.  The message 'Press SPACE or click mouse to clear'
  446. will appear at the bottom of the window. Performing
  447. one of these options will clear the work area and
  448. free up the additional memory used.
  449.  If the Output window is closed when the job
  450. completes then the memory is not freed until the
  451. window is opened and one of the above is performed.
  452.  
  453.   Clicking the menu button over this window allows
  454. you to control the task.
  455.  
  456. 3.4.1 Pausing the task
  457. ----------------------
  458.  
  459.   Selecting the Pause menu option will halt the
  460. current job. This is useful if you wish to do some
  461. short processor intensive work.
  462. When the job is paused, the DaTeX icon will change
  463. to show the word 'Paused'.
  464.  
  465. 3.4.2 Resuming the task
  466. -----------------------
  467.  
  468.   Selecting the Resume menu option will resume
  469. execution of a previously paused job. The DaTeX
  470. icon will change to show that the job is now
  471. running.
  472.  
  473. 3.4.3 Killing the task
  474. ----------------------
  475.  
  476.   Selecting the Kill menu option will terminate the
  477. current job. This should only be used if really
  478. necessary since TeX does not tidy up when it is
  479. terminated in this way; it does not close any files
  480. it has opened.
  481.  
  482.  
  483. 4. Including files
  484. ------------------
  485.  
  486. DaTeX now has improved support for including files.
  487. Files can be included from the directory containing
  488. the TeX file, any directories below that, and from the
  489. directory above.
  490.  
  491. If all that sounds confusing then here is an example:
  492.  
  493.    ADFS::ORAC.$.LaTeX.Documents
  494.        example
  495.          TeX
  496.          ps
  497.            pic1
  498.            pic2
  499.        ps
  500.          global
  501.        sty
  502.          mine
  503.  
  504. The file 'example.tex' can access all of the 'ps.*'
  505. files and the file 'mine.sty'.
  506.  
  507. This effect is achieved by appending two extra
  508. directories to the TeXInputs: path and resetting
  509. the value when the TeX job has finished.
  510.  
  511. This seems to work for me. If you have any problems
  512. let me know. (See below).
  513.  
  514.  
  515. 5. Printers
  516. -----------
  517.  
  518.   In order to print a DVI file it must first be
  519. converted into a format the printer understands.
  520. This is achieved by use of dedicated DVI converter
  521. programs, one for each type.
  522.  
  523. DaTeX allows you to configure which converter you
  524. wish to use by altering the Printers file inside
  525. the !DaTeX application directory. There are 5
  526. predefined printer types :-
  527.  
  528.   1 - PostScript
  529.   2 - Dot-matrix
  530.   3 - Apple Laser Writer
  531.   4 - Hewlett-Packard DeskJet
  532.   5 - Hewlett-Packard LaserJet
  533.   
  534. The PostScript printer uses the 'dvips' converter
  535. program, and the Dot-matrix printer uses the 
  536. 'dvieps' convertor.
  537.  
  538. The format of the Printers file is
  539.  
  540. <Number of printers defined>
  541. <Menu name> <filetype> <output name> <converter> [<options>]
  542. ...
  543.  
  544. Where
  545.  
  546.   <menu name> = The name that appears in the
  547.       Choices window Printers menu
  548.   <filetype>  = The hex value of the filetype to
  549.       identify the output file
  550.   <output name> = The name of the file that will
  551.       contain the converted output.
  552.   <converter> = The name of the command to start
  553.       the DVI converter
  554.   <options>   = Any options needed to be given to
  555.       the converter
  556.       
  557.  Each section can be separated by any number of
  558. tabs or spaces.
  559. Any line that begins with a '#' will be ignored.
  560.  
  561. If a '%0' appears in the options it will be
  562. replaced by the document name (not the DVI
  563. filename).
  564.  
  565. The output name is used to send the converted data
  566. to the printer. This is necessary since there is
  567. no easy way to determine the name of the output
  568. file from the command, only dvips allows you to
  569. specify the name.
  570.  
  571. DaTeX only read this file once, at start up, so if
  572. any changes are made to it, DaTeX must be restarted.
  573.  
  574.  
  575. 6. The DaTeX$Options system variable
  576. ------------------------------------
  577.  
  578.   When starting up a new job, DaTeX looks at the
  579. DaTeX$Options system variable to determine the
  580. colours of the Output window, and whether ArmTeX or
  581. ArMaTuReS is being used.
  582.  
  583.   The only recognised options are :-
  584.   
  585.   F<colour> - the colour of the output text
  586.   B<colour> - the colour of the background
  587.   TOAL      - ArMaTuReS is being used (see below)
  588.   
  589. Anything else will produce a warning box before
  590. continuing.
  591.  
  592.  
  593. 7. ArMaTuReS support
  594. --------------------
  595.  
  596.   By setting the DaTeX$Options system variable to
  597. contain the word 'TOAL' DaTeX will alter how it
  598. starts a TeX job to use the ArMaTuReS commands.
  599. This has as yet not been tested since I removed
  600. ArMaTuReS to make room for ArmTeX!
  601.  
  602.  
  603. 8. Problems
  604. -----------
  605.  
  606.   The following is a list of all known problems.
  607.  
  608. 8.1 !Virtual
  609. ------------
  610.  
  611.   The bigest problem encountered so far is that I
  612. have been unable to get 'bigvirtex' running Virtual
  613. despite the fact that the documentation says it
  614. will!
  615.  
  616. 8.2 Task input
  617. --------------
  618.  
  619.   There is currently no way of indicating that the
  620. current job has stopped because it requires some
  621. input from the user. The only way I can see of
  622. achieving this is to periodically send a
  623. non-printable character to the task and see if it
  624. is echoed back, but this is very messy :-(
  625.  
  626. 8.3 Lack of memory
  627. ------------------
  628.  
  629.   Currently if there is no memory left when a TeX
  630. job is started it simply doesn't display an output
  631. window. Therefore, if the job requires input the
  632. only way the user can tell is if the disk stops being
  633. accessed :-(
  634.  
  635. 9. BibTeX support
  636. -----------------
  637.  
  638. DaTeX now has limited support for BibTeX.
  639.  
  640. Since the only version of BibTeX available is that
  641. supplied with ArMaTuReS, it requires more memory
  642. than ArmTeX (at least 1.2M).
  643.  
  644. When you click on the BibTeX button it will run
  645. BibTeX on the current document to produce a 'bbl'
  646. file. You must then manually click on the LaTeX
  647. button to incorporate this new file.
  648.  
  649. 10. Acknowledgements
  650. -------------------
  651.  
  652. I would like to thank Richard Joseph for designing
  653. the DaTeX icon, its much better than the TeX logo
  654. I was using!
  655.  
  656. I would also like to thank Alun Jones for providing
  657. me with an easy to install version of ArmTeX.
  658.  
  659. And lastly, Mark Sinke for doing such a good job of
  660. porting TeX.
  661.  
  662.  
  663. 11. Disclaimer
  664. -------------
  665.  
  666.   I accept no responsibilty for any damage or loss
  667. of data resulting from the use of this program. If
  668. it does occur please let me know so I can fix the
  669. problem :-)
  670.   In any case you should be making regular backups
  671. of any important data :-)
  672.  
  673.  
  674. 12. Contacting me
  675. -----------------
  676.  
  677.   If you wish to contact me to report any problems,
  678. or even just to compliment me on writing such a 
  679. magnificent program :-), then I can be reached at
  680.  
  681.    Email: daa93@aber.ac.uk
  682.    
  683.    Snail: David Arnold
  684.           Dept. Computer Science
  685.           University of Wales
  686.           Aberystwyth
  687.           Dyfed
  688.           SY23 3DB
  689.  
  690.  
  691. That's all the help you get! Enjoy DaTeX!
  692.